package weather.com.weather.bean

import com.google.gson.annotations.SerializedName


data class WeatherBean(
        @SerializedName("resultcode") val resultcode: String,
        @SerializedName("reason") val reason: String,
        @SerializedName("result") val result: Result,
        @SerializedName("error_code") val errorCode: Int
) {

    data class Result(
            @SerializedName("sk") val sk: Sk,
            @SerializedName("today") val today: Today,
            @SerializedName("future") val future: List<Future>
    ) {

        data class Sk(
                @SerializedName("temp") val temp: String,
                @SerializedName("wind_direction") val windDirection: String,
                @SerializedName("wind_strength") val windStrength: String,
                @SerializedName("humidity") val humidity: String,
                @SerializedName("time") val time: String
        )


        data class Future(
                @SerializedName("temperature") val temperature: String,
                @SerializedName("weather") val weather: String,
                @SerializedName("weather_id") val weatherId: WeatherId,
                @SerializedName("wind") val wind: String,
                @SerializedName("week") val week: String,
                @SerializedName("date") val date: String
        ) {

            data class WeatherId(
                    @SerializedName("fa") val fa: String,
                    @SerializedName("fb") val fb: String
            )
        }


        data class Today(
                @SerializedName("city") val city: String,
                @SerializedName("date_y") val dateY: String,
                @SerializedName("week") val week: String,
                @SerializedName("temperature") val temperature: String,
                @SerializedName("weather") val weather: String,
                @SerializedName("weather_id") val weatherId: WeatherId,
                @SerializedName("wind") val wind: String,
                @SerializedName("dressing_index") val dressingIndex: String?,
                @SerializedName("dressing_advice") val dressingAdvice: String,
                @SerializedName("uv_index") val uvIndex: String,
                @SerializedName("comfort_index") val comfortIndex: String?,
                @SerializedName("wash_index") val washIndex: String,
                @SerializedName("travel_index") val travelIndex: String,
                @SerializedName("exercise_index") val exerciseIndex: String,
                @SerializedName("drying_index") val dryingIndex: String?
        ) {

            data class WeatherId(
                    @SerializedName("fa") val fa: String,
                    @SerializedName("fb") val fb: String
            )
        }
    }
}